﻿<!--Copyright 2010 http://tv4home.codeplex.com
This file is part of TV4Home.Client.TVViewer.
TV4Home.Client.TVViewer is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
TV4Home.Client.TVViewer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with TV4Home.Client.TVViewer. If not, see http://www.gnu.org/licenses/-->
    <Page x:Class="TV4Home.Client.Desktop.TVViewer.Pages.Schedules"
              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:my="clr-namespace:TV4Home.Client.Desktop.TVViewer.Pages"
      mc:Ignorable="d" MinHeight="250" MinWidth="505" Loaded="Page_Loaded" Margin="0,0,0,0"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch">

    <Page.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Assets/Styles.xaml"/>
                <ResourceDictionary Source="/Assets/CoreStyles.xaml"/>
                <ResourceDictionary Source="/Assets/CommonResources.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            <my:DateTimeConverter x:Key="dateConverter"/>
        </ResourceDictionary>

    </Page.Resources>

    <Grid Margin="0,0,0,0"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        
            <Grid  Margin="5">
                <Rectangle Margin="0,0,0,0" Stroke="WhiteSmoke" Fill="Transparent" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >
                    <Rectangle.Effect>
                        <DropShadowEffect Opacity="0.5" BlurRadius="14" ShadowDepth="0" Color="#FF434343"/>
                    </Rectangle.Effect>
                </Rectangle>
                <Grid Margin="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">

                    <ListBox ScrollViewer.VerticalScrollBarVisibility="Disabled"  HorizontalAlignment="Stretch" Margin="1,1,1,1" Name="lbRecordings" VerticalAlignment="Stretch" Background="#00000000">
                        <ListBox.ItemsPanel>
                            <ItemsPanelTemplate>
                                <WrapPanel Orientation="Vertical"/>
                            </ItemsPanelTemplate>
                        </ListBox.ItemsPanel>
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <Border>
                                    <Grid >
                                        <Rectangle Margin="1" Stroke="#FF2D2D2D" Fill="Transparent" MinWidth="396" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                                            <Rectangle.Effect>
                                                <DropShadowEffect Opacity="0.695" BlurRadius="14" ShadowDepth="0" Color="#FF434343"/>
                                            </Rectangle.Effect>
                                        </Rectangle>
                                        <StackPanel Margin="3">
                                            <DockPanel >
                                                <TextBlock FontWeight="Bold" Text="Sendung:" DockPanel.Dock="Left" Margin="5,0,10,0"/>
                                                <TextBlock Text="  " />
                                                <TextBlock FontWeight="Bold" Text="{Binding Path=ProgramName}"  />
                                            </DockPanel>
                                            <DockPanel >
                                                <TextBlock FontWeight="Bold" Text="Beginn:" DockPanel.Dock="Left" Margin="5,0,5,0"/>
                                                <TextBlock Text="  " />
                                                <TextBlock Text="{Binding Path=StartTime,Converter={StaticResource dateConverter}}" />
                                            </DockPanel>
                                            <DockPanel >
                                                <TextBlock FontWeight="Bold" Text="Ende:" DockPanel.Dock="Left" Margin="5,0,5,0"/>
                                                <TextBlock Text="  " />
                                                <TextBlock Text="{Binding Path=EndTime,Converter={StaticResource dateConverter}}" />
                                            </DockPanel>
                                        </StackPanel>
                                    </Grid>
                                </Border>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                        <ListBox.ItemContainerStyle>
                            <Style TargetType="ListBoxItem">
                                <Setter Property="MaxWidth" Value="400"/>
                                <EventSetter Event="ListBoxItem.Selected" Handler="lbRecordings_Selected" HandledEventsToo="True"/>
                            </Style>
                        </ListBox.ItemContainerStyle>
                    </ListBox>
                </Grid>
            </Grid>
    


        <Border x:Name="brdDetails" Margin="280,30,280,50" Panel.ZIndex="1" >
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="35" />
                    <ColumnDefinition Width="420*" />
                    <ColumnDefinition Width="35" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="27" />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Rectangle x:Name="details_overlay" Visibility="Hidden"  Fill="WhiteSmoke" Stroke="#FF2D2D2D" Grid.RowSpan="2" Grid.ColumnSpan="3">
                    <Rectangle.Effect>
                        <DropShadowEffect Opacity="0.695" BlurRadius="14" ShadowDepth="0" Color="#FF434343"/>
                    </Rectangle.Effect>
                </Rectangle>
                <Rectangle Name="topRectangle" Grid.Column="1" Grid.Row="0" Fill="{StaticResource BaseBlueBrush}" Visibility="Hidden" />
                <Button Name="btnCloseDetails" HorizontalAlignment="Right" Margin="3" VerticalAlignment="Top" Visibility="Hidden"
				Style="{StaticResource SemiTransparentButton2}" ButtonBase.Click="btnCloseDetails_Click" Grid.Column="1" Grid.Row="0">
                    <TextBlock TextWrapping="Wrap" Text="r" FontFamily="Webdings" FontSize="13.333" />
                </Button>
                <Grid Grid.Column="1" Grid.Row="1">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="86" />
                        <RowDefinition Height="260*" />
                        <RowDefinition Height="36" />
                    </Grid.RowDefinitions>

                    <TextBox Margin="8,36,6,8" Name="tbProgramTitle" AcceptsTab="False" IsReadOnly="True" Background="#00000000" Visibility="Hidden"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
                    <TextBox Margin="8,58,6,0" Name="tbProgramDescription" AcceptsReturn="True" TextWrapping="Wrap" IsReadOnly="True" HorizontalScrollBarVisibility="Auto" Grid.Row="1" Background="#00000000" Visibility="Hidden" />
                    <Label Style="{StaticResource ResourceKey=SegoeUILabel}" Content="Titel:" Margin="8,6,342,56" Name="lblTitle"  MinHeight="24" MinWidth="56" Visibility="Hidden"/>
                    <Label Style="{StaticResource ResourceKey=SegoeUILabel}" Content="Beschreibung:" Margin="6,14,306,216" Name="lblDescription" Grid.Row="1" MinHeight="30" MinWidth="94" Visibility="Hidden" />
                    <Button Style="{StaticResource ResourceKey=SemiTransparentButton}" Content="Aufnahme abbrechen" x:Name="btnCancelSchedule" Grid.Row="2" Margin="250,6,6,6" MaxWidth="135" Click="btnCancelSchedule_Click" Visibility="Hidden"/>
                </Grid>
            </Grid>
        </Border>
        <Rectangle x:Name="complete_overlay" Fill="Transparent" Stroke="Transparent" Visibility="Hidden" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,0,0" MouseLeftButtonDown="complete_overlay_MouseLeftButtonDown"/>

    </Grid>
    </Page>